package cn.powertalk3.server.entry;

import cn.powertalk3.server.model.User;
import cn.powertalk3.server.service.UserService;
import cn.powertalk3.server.util.SocketUtil;
import org.apache.mina.common.IoAcceptor;

/**
 *
 * @author mrgaolei
 */
public class PowerTalk3Server {

	public static void main(String[] args) throws Exception {
		UserService userService = new UserService();
//		userService.register(new User("rafan@163.com", "andrewlblb"));
        int login = userService.login("rafan@163.com", "andrewlblb");
        System.out.println(login);
        IoAcceptor acceptor = SocketUtil.getIoAcceptor();
	}
}
